package com.hwadee;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan("com.hwadee.mapper") // 指定 MyBatis Mapper 接口所在的包
@RestController
public class Main {
    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
    }

    /**
     * 简单的示例接口，返回欢迎信息
     * @return 欢迎字符串
     */
    @GetMapping("/api/hello")
    public String hello() {
        return "Welcome to the Health System!";
    }
}
